#ifndef MENU_H
#define MENU_H

//#include "terminal.h"
//#include "controll.h"
//#include <stdint.h>	
#include <avr/pgmspace.h>

#define MENUSIZE 8
#define ITEM_MAX_LENGTH 14

uint8_t selectedpos; 
uint8_t subselectedpos;

enum select_pos;

typedef struct menustr
{
	PGM_P text;
	uint8_t pos;
	uint8_t next;
	uint8_t prev;
	void (*fp)();
	struct menustr *sub;
}menu;

menu mymenu[MENUSIZE];
uint8_t sublength[MENUSIZE];

//enum select_pos { mprev, mnext };

#endif /* MENU_H */
	
